package linker.list;

import java.awt.Component;

import javax.swing.DefaultListCellRenderer;
import javax.swing.JList;

/**
 * 
 * @version linker 0.93
 * @author Jianfeng jianfeng.linker@gmail.com
 *
 */
public class CellRender extends DefaultListCellRenderer {

	private static final long serialVersionUID = 1L;

	public Component getListCellRendererComponent(JList list, Object value,
			int index, boolean iss, boolean chf) {
		super.getListCellRendererComponent(list, value, index, iss, chf);

		((ListItem) value).setRender(this);

		return this;
	}
}
